import java.util.Scanner;

public class test11_9_6 {
    public static void main(String[] args) {
        //年薪计算器练习
        Scanner input = new Scanner(System.in);     //创建Scanner对象
        outer:while (true){
            System.out.println("请输入选项：\n1.输入 88 退出\n2.输入 66 计算年薪");
            int choice = input.nextInt();
            if (choice == 88){
                break;
            }
            else if (choice == 66){
                System.out.println("开始计算年薪");
                System.out.println("请输入月薪:");
                double salary = input.nextDouble();     //获取用户输入的月薪
                System.out.println("请输入一年几个月薪资:");
                int month = input.nextInt();     //获取用户输入的月薪月数
                //计算年薪
                double yearSalary = salary * month;
                if (yearSalary >= 100000){
                    System.out.println("年薪为:" + yearSalary + "元，恭喜你超越90%的国人!!!\n");
                }
                else if (yearSalary > 200000){
                    System.out.println("年薪为:" + yearSalary + "元，恭喜你超越98%的国人!!!\n");
                }
                else {
                    System.out.println("年薪为:" + yearSalary + "元，加油，你一定可以超越更多的人!!!\n");
                }
            }
            else{
                System.out.println("输入错误，请重新输入\n");
                continue outer;
            }
        }
           
            
    }
}
